const path = require("path");
let filesPathConfigs = {};

//项目根路径
filesPathConfigs.projectPath = path.resolve(__dirname,"./");

//中间件路径 
filesPathConfigs.controllerMiddlewarePath       = filesPathConfigs.projectPath + "/middlewares/controller_middleware.js";
// filesPathConfigs.sessionMiddlewarePath          = filesPathConfigs.projectPath + "/middlewares/session_middle.js";
// filesPathConfigs.staticMiddlewarePath           = filesPathConfigs.projectPath + "/middlewares/static_middleware.js";
// filesPathConfigs.htmlTemplateMiddlewarePath     = filesPathConfigs.projectPath + "/middlewares/html_template_middleware.js";
// filesPathConfigs.logMiddlewarePath              = filesPathConfigs.projectPath + "/middlewares/log_middleware.js";

//controller路径:api父目录
filesPathConfigs.controllersFatherPath          = filesPathConfigs.projectPath + "/routes";

//static路径:静态资源父目录
filesPathConfigs.staticsPath                    = filesPathConfigs.projectPath + "/public";

//htmlTemplete路径:html模板目录
filesPathConfigs.viewsPath                      = filesPathConfigs.projectPath + "/views";

//html配置:静态资script&css配置目录
// filesPathConfigs.htmlStyleScriptConfigPath      = filesPathConfigs.htmlTemplateFatherPath + "/page_source_config.js";

//mysql配置文件路径
filesPathConfigs.mysqlServiceConfigPath         = filesPathConfigs.projectPath + "/configs/mysql_service_config.js";
//mysql查询语句文件路径
filesPathConfigs.mysqlQueryConfigPath           = filesPathConfigs.projectPath + "/configs/mysql_query_config.js";

//log4js日志系统配置路径
filesPathConfigs.log4jsConfigPath           = filesPathConfigs.projectPath + "/configs/log4js_config.json";
module.exports = filesPathConfigs;